<#ibiztemplate>
TARGET=PSDATAENTITY
</#ibiztemplate>
package ${pub.getPKGCodeName()}.${item.getPSSystemModule().codeName?lower_case}.service.impl;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import ${pub.getPKGCodeName()}.${item.getPSSystemModule().codeName?lower_case}.entity.${item.codeName};
import ${pub.getPKGCodeName()}.${item.getPSSystemModule().codeName?lower_case}.mapper.${item.codeName}Mapper;
import ${pub.getPKGCodeName()}.${item.getPSSystemModule().codeName?lower_case}.service.${item.codeName}Service;

/**
 * 实体[${item.codeName}] 服务对象接口实现
 */
@Service
public class ${item.codeName}ServiceImpl extends ServiceImpl<${item.codeName}Mapper, ${item.codeName}> implements ${item.codeName}Service{

<#list item.getMinorPSDERs() as der>
    public Collection<${pub.getPKGCodeName()}.${item.getPSSystemModule().codeName?lower_case}.entity.${der.getMinorPSDataEntity().codeName}> select${der.getMinorPSDataEntity().codeName}sBy${der.getMajorPSDataEntity().getKeyPSDEField().codeName}(String ${der.getMajorPSDataEntity().getKeyPSDEField().codeName}) {
        Map<String,Object> columnMap = new HashMap<>();
		columnMap.put("${der.getMajorPSDataEntity().getKeyPSDEField().codeName?lower_case}",${der.getMajorPSDataEntity().getKeyPSDEField().codeName});
		return this.listByMap(columnMap) ;
    }

</#list>

}